/*
 * Global settings, in `style.css`
 */

/* The rendering style of `#title` */

#title {
    height: var(--title-hight);
    background-color: var(--title-color);
    margin: 0px;
    border-bottom: 1px solid var(--title-line-color);

    -webkit-app-region: drag;
}

/* The rendering style of `#container` */

#container {
    position: relative;
    height: calc(100vh - var(--title-hight) - 1px - var(--info-height));
}

#container > .global {
    position: absolute;
    top: 0px;
    bottom: 0px;
}

#console {
    position: relative;
    width: var(--console-width);
    left: 0px;
    background-color: var(--console-color);
}

#console-background {
    position: absolute;
    height: 100px;
    top: 0px; bottom: 0px; left: 0px; right: 0px;
    margin: auto;
    text-align: center;
    font: 100px Arial, sans-serif;
    line-height: 100px;
    color: #202020;
    text-shadow: 0 1px 0 rgba(150, 150, 150, 0.3), 0 -1px 0 rgba(20, 20, 20, 0.5);
    user-select: none;
}

#console-msgs {
    position: absolute;
    top: 0px; bottom: 0px; left: 0px; right: 0px;
    overflow-x: hidden;
    overflow-y: scroll;
}

#console-msgs::-webkit-scrollbar {
    width: var(--console-msgs-scrollwidth);
}

#console-msgs::-webkit-scrollbar-thumb {
    background-color: #505050;
    width: var(--console-msgs-scrollwidth);
    border-radius: 4px;
}

#console-msgs::-webkit-scrollbar-thumb:hover {
    background-color: #606060;
}

/* The rendering style of `#settings-bar` */

#settings-bar {
    width: var(--settings-bar-width);
    left: var(--console-width);
    background-color: var(--settings-bar-color);
}

.settings-bar-system, .settings-bar-console {
    background-color: #2c2c2c;
    margin-left: 2px;
    margin-right: 2px;
}

.settings-bar-system {
    margin-top: 1px;
    margin-bottom: 10px;
    border-radius: 4px;
    height: calc(var(--settings-bar-width) - 4px);
    overflow: hidden;
}

.settings-bar-system > svg {
    transform-origin: left top;
    transform: scale(0.16);
    position: relative;
    left: -11px;
    top: 1px;
    fill: var(--settings-bar-icon-color);
}

.settings-bar-console {
    border-radius: var(--settings-bar-width);
    margin-top: 20px;
    padding-top: 3px;
    padding-bottom: 3px;
}

.settings-bar-console > div {
    height: calc(var(--settings-bar-width) - 4px);
    overflow: hidden;
    margin-top: 6px;
    margin-bottom: 6px;
}

.settings-bar-console > div > svg {
    transform-origin: left top;
    transform: scale(0.16);
    fill: var(--settings-bar-icon-color);
    position: relative;
    left: -11px;
    top: 1px;
}

.settings-bar-console > div > svg:hover {
    fill: var(--settings-bar-hovercolor);
}

/* The rendering style of `#control` */

#control {
    left: calc(var(--console-width) + var(--settings-bar-width));
    right: 0px;
    background-color: var(--control-color);
    overflow: hidden;
}

#entry-pad {
    position: absolute;
    top: 0px;
    bottom: 0px;
    left: 0px;
    right: 0px;
}

#entrys-new {
    position: relative;
    height: var(--control-entrys-new-height);
    background-color: #242424;
    margin: 1px;
    overflow: hidden;
}

#entrys-new > svg {
    display: block;
    width: 27px;
    height: 14px;
    border-radius: 3px;
    position: absolute;
    left: 0px; right: 0px; top: 0px; bottom: 0px;
    margin: auto;
}

#entrys {
    position: absolute;
    top: calc(var(--control-entrys-new-height) + 1px);
    bottom: calc(var(--config-bar-height));
    left: 0px;
    right: 0px;
    overflow: auto;
}

#entrys::-webkit-scrollbar {
    display: none;
}

    /* config port configuration */
#config {
    position: absolute;
    left: 0px;
    right: 0px;
    bottom: 0px;
    height: var(--config-height);
    background-color: var(--config-color);
    border-top: 1px solid var(--config-line-color);
    border-left: 1px solid var(--config-line-color);
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    backdrop-filter: blur(8px);
    user-select: none;
    overflow: hidden;
}

#config-bar {
    height: var(--config-bar-height);
    background-color: var(--config-line-color);
}

#config-bar > div {
    width: calc(var(--config-bar-height) + 5px);
    height: var(--config-bar-height);
    margin: auto;
    overflow: hidden;
}

#config-content {
    position: relative;
    height: calc(var(--config-height) - var(--config-bar-height));
}

#config-content > .global {
    position: absolute;
    top: 10px;
    bottom: 10px;
    color: var(--config-com-select-color);
    font-size: small;
    line-height: var(--config-com-select-height);
}

#config-label {
    width: var(--config-lable-width);
}

#config-label > div {
    height: var(--config-com-select-height);
    margin-bottom: var(--config-com-bottom-margin);
    margin-left: 10px;
    background-color: #555555;
    border-radius: calc(var(--config-com-select-height) / 2);
    padding-left: 5px;
}

#config-com {
    left: calc(var(--config-lable-width) + 10px);
    width: var(--config-com-width);
    border-right: 1px dashed #555555;
}

#config-com > select {
    display: block;
    width: var(--config-com-select-width);
    height: var(--config-com-select-height);
    background-color: var(--config-com-select-bcolor);
    border-radius: calc(var(--config-com-select-height) / 2);
    color: var(--config-com-select-color);
    margin-bottom: var(--config-com-bottom-margin);
}

#config-file {
    left: calc(var(--config-lable-width) + var(--config-com-width) + 20px);
    right: calc(var(--config-com-btn-width) + 20px);
}

#config-file > div {
    margin-bottom: var(--config-com-bottom-margin);
}

#config-file > div > span {
    display: inline-block;
    width: 50px;
    height: var(--config-com-select-height);
    background-color: #555555;
    border-radius: calc(var(--config-com-select-height) / 2);
    padding-left: 5px;
}

#config-file > div > select {
    display: inline-block;
    height: var(--config-com-select-height);
    background-color: var(--config-com-select-bcolor);
    border-radius: calc(var(--config-com-select-height) / 2);
    color: var(--config-com-select-color);
    position: absolute;
    left: 65px;
    right: 0px;
}

#config-com-btn {
    width: var(--config-com-btn-width);
    right: 10px;
    background-color: #994545;
    border-radius: calc(var(--config-com-btn-width) / 2);
}

#config-com-btn > div {
    height: 25px;
    position: absolute;
    left: 0px;
    right: 0px;
    top: 0px;
    bottom: 0px;
    margin: auto;
    text-align: center;
}

/* The rendering style of `#info` */

#info {
    height: var(--info-height);
    background-color: #994545;
    padding-left: 8px;
}

#info-msg {
    border-radius: 8px;
    padding-left: 6px;
    padding-right: 6px;
    background-color: #704545;
    font: 11px sans-serif;
    color: #c0c0c0;
    position: relative;
    bottom: 2px;
    user-select: none;
}

/* Others */

.string-type {
    color: #aaaaaa;
    user-select: none;
    text-align: center;
    font-size: large;
}

.string-type:hover {
    color: var(--settings-bar-hovercolor);
}
